import requests
import pandas as pd


def fetchData(sprintList):
    data = []
    for sprint in sprintList:
        res = requests.get(
            "https://quality-tools.maycur.com//teambition_script/sprint/task/?name="
            + sprint
        )
        if res.status_code == 200:
            d = res.json()["data"]["results"]
            data.extend(d)
        else:
            print(res.status_code)
    return pd.DataFrame(data)
